use algorithm::algorithm::sort;
#[test]
fn test_sort() {
    let a: &mut Vec<i32> = &mut vec![1, 5, 8, 2, 3, 5, 6, 7];
    let mut truth = a.to_vec();
    truth.sort_by(|a, b| b.cmp(a));
    fast_sort(a, 0, a.len() - 1);
    assert_eq!(a.to_owned(), truth);
}
